/*******************************************************************************
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 *
 * Created on Apr 11, 2008
 *******************************************************************************/
package com.zhmy.xmgl.zhmytask.impl;

import com.primeton.ext.data.sdo.DataUtil;
import com.primeton.ext.data.sdo.ExtendedDataObjectImpl;
import com.zhmy.xmgl.zhmytask.ZhmyProject;
import com.zhmy.xmgl.zhmytask.ZhmyVersionChange;

import commonj.sdo.Type;

import java.util.Date;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Test</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcId <em>VcId</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcVersionNumber <em>VcVersionNumber</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcSourceAddress <em>VcSourceAddress</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcDescribe <em>VcDescribe</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcFonder <em>VcFonder</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcCtime <em>VcCtime</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getVcUtime <em>VcUtime</em>}</li>
 *   <li>{@link com.zhmy.xmgl.zhmytask.impl.ZhmyVersionChangeImpl#getZhmyProject <em>ZhmyProject</em>}</li>
 * </ul>
 * </p>
 *
 * @extends ExtendedDataObjectImpl;
 *
 * @implements ZhmyVersionChange;
 */

public class ZhmyVersionChangeImpl extends ExtendedDataObjectImpl implements ZhmyVersionChange {
	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;
	public final static int INDEX_VCID = 0;
	public final static int INDEX_VCVERSIONNUMBER = 1;
	public final static int INDEX_VCSOURCEADDRESS = 2;
	public final static int INDEX_VCDESCRIBE = 3;
	public final static int INDEX_VCFONDER = 4;
	public final static int INDEX_VCCTIME = 5;
	public final static int INDEX_VCUTIME = 6;
	public final static int INDEX_ZHMYPROJECT = 7;
	public static final int SDO_PROPERTY_COUNT = 8;

	public static final int EXTENDED_PROPERTY_COUNT = -1;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public ZhmyVersionChangeImpl() {
		this(TYPE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public ZhmyVersionChangeImpl(Type type) {
		super(type);
	}

	protected void validate() {
		validateType(TYPE);
	}

	/**
	 * Returns the value of the '<em><b>VcId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcId</em>' attribute.
	 * @see #setVcId(long)
	 */
	public long getVcId() {
		return DataUtil.toLong(super.getByIndex(INDEX_VCID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcId <em>VcId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcId</em>' attribute.
	 * @see #getVcId()
	 */
	public void setVcId(long vcId) {
		super.setByIndex(INDEX_VCID, vcId);
	}

	/**
	 * Returns the value of the '<em><b>VcVersionNumber</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcVersionNumber</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcVersionNumber</em>' attribute.
	 * @see #setVcVersionNumber(java.lang.String)
	 */
	public String getVcVersionNumber() {
		return DataUtil.toString(super.getByIndex(INDEX_VCVERSIONNUMBER, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcVersionNumber <em>VcVersionNumber</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcVersionNumber</em>' attribute.
	 * @see #getVcVersionNumber()
	 */
	public void setVcVersionNumber(String vcVersionNumber) {
		super.setByIndex(INDEX_VCVERSIONNUMBER, vcVersionNumber);
	}

	/**
	 * Returns the value of the '<em><b>VcSourceAddress</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcSourceAddress</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcSourceAddress</em>' attribute.
	 * @see #setVcSourceAddress(java.lang.String)
	 */
	public String getVcSourceAddress() {
		return DataUtil.toString(super.getByIndex(INDEX_VCSOURCEADDRESS, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcSourceAddress <em>VcSourceAddress</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcSourceAddress</em>' attribute.
	 * @see #getVcSourceAddress()
	 */
	public void setVcSourceAddress(String vcSourceAddress) {
		super.setByIndex(INDEX_VCSOURCEADDRESS, vcSourceAddress);
	}

	/**
	 * Returns the value of the '<em><b>VcDescribe</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcDescribe</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcDescribe</em>' attribute.
	 * @see #setVcDescribe(java.lang.String)
	 */
	public String getVcDescribe() {
		return DataUtil.toString(super.getByIndex(INDEX_VCDESCRIBE, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcDescribe <em>VcDescribe</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcDescribe</em>' attribute.
	 * @see #getVcDescribe()
	 */
	public void setVcDescribe(String vcDescribe) {
		super.setByIndex(INDEX_VCDESCRIBE, vcDescribe);
	}

	/**
	 * Returns the value of the '<em><b>VcFonder</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcFonder</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcFonder</em>' attribute.
	 * @see #setVcFonder(java.lang.String)
	 */
	public String getVcFonder() {
		return DataUtil.toString(super.getByIndex(INDEX_VCFONDER, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcFonder <em>VcFonder</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcFonder</em>' attribute.
	 * @see #getVcFonder()
	 */
	public void setVcFonder(String vcFonder) {
		super.setByIndex(INDEX_VCFONDER, vcFonder);
	}

	/**
	 * Returns the value of the '<em><b>VcCtime</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcCtime</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcCtime</em>' attribute.
	 * @see #setVcCtime(java.util.Date)
	 */
	public Date getVcCtime() {
		return DataUtil.toDate(super.getByIndex(INDEX_VCCTIME, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcCtime <em>VcCtime</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcCtime</em>' attribute.
	 * @see #getVcCtime()
	 */
	public void setVcCtime(Date vcCtime) {
		super.setByIndex(INDEX_VCCTIME, vcCtime);
	}

	/**
	 * Returns the value of the '<em><b>VcUtime</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>VcUtime</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>VcUtime</em>' attribute.
	 * @see #setVcUtime(java.util.Date)
	 */
	public Date getVcUtime() {
		return DataUtil.toDate(super.getByIndex(INDEX_VCUTIME, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getVcUtime <em>VcUtime</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>VcUtime</em>' attribute.
	 * @see #getVcUtime()
	 */
	public void setVcUtime(Date vcUtime) {
		super.setByIndex(INDEX_VCUTIME, vcUtime);
	}

	/**
	 * Returns the value of the '<em><b>ZhmyProject</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>ZhmyProject</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>ZhmyProject</em>' attribute.
	 * @see #setZhmyProject(com.zhmy.xmgl.zhmytask.ZhmyProject)
	 */
	public ZhmyProject getZhmyProject() {
		return (ZhmyProject) DataUtil.toDataObject(super.getByIndex(INDEX_ZHMYPROJECT, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getZhmyProject <em>ZhmyProject</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>ZhmyProject</em>' attribute.
	 * @see #getZhmyProject()
	 */
	public void setZhmyProject(ZhmyProject zhmyProject) {
		super.setByIndex(INDEX_ZHMYPROJECT, zhmyProject);
	}


}